package com.kinggm.service.factory;

import com.kinggm.service.factory.abs.Pizza;
import com.kinggm.service.factory.abs.PizzaStore;
import com.kinggm.service.factory.abs.impl.NYPizzaStore;

/**
 * 测试工厂方法模式和抽象工厂模式
 * */
public class FactoryTest {
    public static void main(String[] args) {

        PizzaStore nyPizzaStore = new NYPizzaStore();
        Pizza nyCheesePizza = nyPizzaStore.orderPizza("china");
        System.out.println(nyCheesePizza);



    }
}
